import java.util.Scanner;
public class GuessNumber {
    Scanner Scan = new Scanner(System.in);
    int [] answer = new int[4];
    int [] guess = new int[4];
    public void generateAnswer(){
        int i = 0;
        while (i< 4){
            int candidate = (int)(Math.random()*10);
            boolean hasDuplicate = false;
            for(int j=0; j<i; j++){
                if (answer[j]== candidate){
                    hasDuplicate =true;
                    break;
                }

}
